using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ImageAnalystTools._Math._Logical
{
    /// <summary>
    /// <para>Is Null</para>
    /// <para>Determines which values from the input raster are NoData on a cell-by-cell basis.</para>
    /// <para>逐个像元确定输入栅格中的哪些值为 NoData。</para>
    /// </summary>    
    [DisplayName("Is Null")]
    public class IsNull : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public IsNull()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_raster">
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster being tested to identify the cells that are NoData (null).</para>
        ///   <para>The input can be either integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>正在测试的输入栅格，用于识别 NoData （null） 的像元。</para>
        ///   <para>输入可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// </param>
        /// <param name="_out_raster">
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The output identifies with an integer value of 1 which cells in the input are NoData. If the input is any other value, the output is 0.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>输出以整数值 1 标识输入中的哪些单元格是 NoData。如果输入是任何其他值，则输出为 0。</para>
        /// </xdoc></para>
        /// </param>
        public IsNull(object _in_raster, object _out_raster)
        {
            this._in_raster = _in_raster;
            this._out_raster = _out_raster;
        }
        public override string ToolboxName => "Image Analyst Tools";

        public override string ToolName => "Is Null";

        public override string CallName => "ia.IsNull";

        public override List<string> AcceptEnvironments => ["autoCommit", "cellSize", "cellSizeProjectionMethod", "compression", "configKeyword", "extent", "geographicTransformations", "mask", "outputCoordinateSystem", "scratchWorkspace", "snapRaster", "tileSize", "workspace"];

        public override object[] ParameterInfo => [_in_raster, _out_raster];

        /// <summary>
        /// <para>Input raster</para>
        /// <para><xdoc>
        ///   <para>The input raster being tested to identify the cells that are NoData (null).</para>
        ///   <para>The input can be either integer or floating-point type.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>正在测试的输入栅格，用于识别 NoData （null） 的像元。</para>
        ///   <para>输入可以是整数类型，也可以是浮点类型。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_raster { get; set; }


        /// <summary>
        /// <para>Output raster</para>
        /// <para><xdoc>
        ///   <para>The output raster.</para>
        ///   <para>The output identifies with an integer value of 1 which cells in the input are NoData. If the input is any other value, the output is 0.</para>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>输出栅格。</para>
        ///   <para>输出以整数值 1 标识输入中的哪些单元格是 NoData。如果输入是任何其他值，则输出为 0。</para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output raster")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _out_raster { get; set; }


        public IsNull SetEnv(int? autoCommit = null, object cellSize = null, object compression = null, object configKeyword = null, object extent = null, object geographicTransformations = null, object mask = null, object outputCoordinateSystem = null, object scratchWorkspace = null, object snapRaster = null, double[] tileSize = null, object workspace = null)
        {
            base.SetEnv(autoCommit: autoCommit, cellSize: cellSize, compression: compression, configKeyword: configKeyword, extent: extent, geographicTransformations: geographicTransformations, mask: mask, outputCoordinateSystem: outputCoordinateSystem, scratchWorkspace: scratchWorkspace, snapRaster: snapRaster, tileSize: tileSize, workspace: workspace);
            return this;
        }

    }

}